package com.expert.annotations;

import com.expert.enums.RoleLevel;

import java.lang.annotation.*;

/**
 * @ClassName: RoleAnnotation
 * @Author: cxs
 * @Date: 2024/02/07 14:01
 * @Description:
 **/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented     // 在生成javac时显示该注解的信息
@Inherited
public @interface RoleAnnotation {
    RoleLevel level() default RoleLevel.ALL;     //默认全部用户可访问
}
